package net.sk.china.front.service.wechat;

import java.math.BigDecimal;
import java.util.Map;

/**
 * WeChatPayService 接口
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/5 10:28
 * // +----------------------------------------------------------------------
 */
public interface WeChatPayService {

    /**
     * 统一支付
     * @param uid 用户ID
     * @param openId 微信openid
     * @param payType 支付方式 h5、routine、public、app
     * @param orderId 订单号
     * @param price 金额
     * @param clientIp 客户端IP
     * @param attach 支付附属数据
     * @return Map<String, String>
     */
    Map<String, String> wxPay(Integer uid, String openId, String payType, String orderId, BigDecimal price, String clientIp, String attach);
}
